package china.song314.testcode;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;

public class TestURL {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		

		String s = "sina login result = request=%2Foauth%2Faccess_token&error_code=403&error=40302%3AError%3A+auth+faild%21&error_CN=%E9%94%99%E8%AF%AF%3A%E8%AE%A4%E8%AF%81%E5%A4%B1%E8%B4%A5";
		String ulr = "request=%2Foauth%2Faccess_token&error_code=403&error=40302%3AError%3A+auth+faild%21&error_CN=%E9%94%99%E8%AF%AF%3A%E8%AE%A4%E8%AF%81%E5%A4%B1%E8%B4%A5";
try {
	System.out.println(URLDecoder.decode(s,"UTF-8"));
} catch (UnsupportedEncodingException e) {
	// TODO Auto-generated catch block
	e.printStackTrace();
}
		
	}

}
